<div class="boxAdvance{if $strAction == "advance"} noBottomLine{/if}">
    <div class="headerTitle"><h3>Tìm kiếm nâng cao</h3></div>
    <div class="advanceItem">
        <form method="get" id="frmSearch" name="frmSearch" action="{$smarty.const.LINK_MEMBER_SEARCH}" onsubmit="return actionSearchAdv();">
        	<input type="hidden" name="advance" id="advance" value="1" />
            <div class="userInput">
            	<label for="keyword">Từ khóa</label>
                <input type="text" id="keyword" name="keyword" {if isset($params)}value="{$params.keyword|escape}"{/if} maxlength="50" class="text" />
            </div>
            <div class="userInput">
            	<div class="half">
                    <label for="afrom">Tuổi</label>
                    <div class="afrom">
                        <select name="afrom" id="afrom" class="select half">
                            <option value="0">Tất cả</option>
                           	{if isset($params)}
                                {html_options options=$arrAge selected=$params.afrom}
                            {else}
                                {html_options options=$arrAge}
                            {/if}
                        </select>
                    </div>
                    <div class="ato">
                        <select name="ato" id="ato" class="select half">
                            <option value="0">Tất cả</option>
                            {if isset($params)}
                                {html_options options=$arrAge selected=$params.ato}
                            {else}
                                {html_options options=$arrAge}
                            {/if}
                        </select>
                   	</div>
               	</div>
                <div class="marital half">
                    <label for="marital">Tình trạng</label>
                    <select name="marital[]" id="marital" multiple="multiple">
                        {if isset($params)}
                            {html_options options=$arrMarital selected=$params.marital}
                        {else}
                            {html_options options=$arrMarital}
                        {/if}
                    </select>
               	</div>
            </div>  
            <div class="userInput">
            	<div class="half">
                    <label for="look_gender">Giới tính</label>
                    <div class="gender">
                        <select name="gender" id="look_gender" class="select half">
                            <option value="0">Tất cả</option>
                            {if isset($params)}
                                {html_options options=$arrGender selected=$params.gender}
                            {else}
                                {html_options options=$arrGender}
                            {/if}
                        </select>
                   	</div>
               	</div>
                <div class="occupation half">
                    <label for="occupation">Nghề nghiệp</label>
                    <select name="occupation[]" id="occupation" multiple="multiple">                    	
                        {if isset($params)}
                            {html_options options=$arrOccupation selected=$params.occupation}
                        {else}
                            {html_options options=$arrOccupation}
                        {/if}
                    </select>
               	</div>
            </div>
            <div class="userInput">
            	<div class="half">
                    <label for="avatar">Ảnh đại diện</label>
                    <div class="avatar">
                        <select name="avatar" id="avatar" class="select half">
                            <option value="0" {if isset($params) && $params.avatar==0}selected="selected"{/if}>Không</option>
                            <option value="1" {if isset($params) && $params.avatar==1}selected="selected"{/if}>Có</option>
                        </select>
                   	</div>
               	</div>
            	<div class="religion half">
                    <label for="religion">Tôn giáo</label>
                    <select name="religion[]" id="religion" multiple="multiple">
                    	{if isset($params)}
                            {html_options options=$arrReligion selected=$params.religion}
                        {else}
                            {html_options options=$arrReligion}
                        {/if}
                    </select>
               	</div>                
            </div>       
            <div class="userInput">
            	<div class="province half">
                    <label for="province">Tỉnh/thành</label>
                    <select name="province[]" id="province" class="first" multiple="multiple">                    	
                        {if isset($params)}
                            {html_options options=$arrProvince selected=$params.province}
                        {else}
                            {html_options options=$arrProvince}
                        {/if}
                    </select>
               	</div>
            	<div class="preference half">
                    <label for="preference">Sở thích</label>
                    <select name="preference[]" id="preference" multiple="multiple">
                        {if isset($params)}
                        	<optgroup label="Điện ảnh" id="{$smarty.const.QUESTION_ID_MOVIE}">
                            	{html_options options=$arrMovie selected=$params.preference}
                            </optgroup>
                            <optgroup label="Âm nhạc" id="{$smarty.const.QUESTION_ID_MUSIC}">
                            	{html_options options=$arrMusic selected=$params.preference}
                            </optgroup>
                            <optgroup label="Thể thao" id="{$smarty.const.QUESTION_ID_SPORT}">
                            	{html_options options=$arrSport selected=$params.preference}
                            </optgroup>
                            <optgroup label="Khác" id="{$smarty.const.QUESTION_ID_OTHER}">
                            	{html_options options=$arrOther selected=$params.preference}
                            </optgroup>
                        {else}
                        	<optgroup label="Điện ảnh" id="{$smarty.const.QUESTION_ID_MOVIE}">
                            	{html_options options=$arrMovie}
                            </optgroup>
                        	<optgroup label="Âm nhạc" id="{$smarty.const.QUESTION_ID_MUSIC}">
                            	{html_options options=$arrMusic}
                            </optgroup> 
                            <optgroup label="Thể thao" id="{$smarty.const.QUESTION_ID_SPORT}">
                            	{html_options options=$arrSport}
                            </optgroup>
                            <optgroup label="Khác" id="{$smarty.const.QUESTION_ID_OTHER}">
                            	{html_options options=$arrOther}
                            </optgroup>
                        {/if}
                    </select>
               	</div>                
            </div>
            <div class="userInput">
            	<input type="submit" class="btn" value="Tìm kiếm" />
            </div>     
        </form>
    </div>
</div>